import 'package:get/get.dart';
import 'package:kq_flutter_core_widget_example/pages/demo/chart/bar_chart_demo.dart';
import 'package:kq_flutter_core_widget_example/pages/demo/chart/combined_chart_demo.dart';
import 'package:kq_flutter_core_widget_example/pages/demo/chart/horizontal_bar_chart_demo.dart';

import '../pages/demo/ble_demo.dart';
import '../pages/demo/chart/chart_demo.dart';
import '../pages/demo/chart/line_chart_demo.dart';
import '../pages/demo/chart/pie_chart_3d_demo.dart';
import '../pages/demo/chart/pie_chart_demo.dart';
import '../pages/demo/chart/radar_chart_demo.dart';
import '../pages/demo/table_widget_demo.dart';
import '../pages/demo/table_widget_split_cell_demo.dart';

class RouteMap {
  /// 路由配置
  static List<GetPage> getPages = [
    GetPage(name: '/KqTable', page: () => const TableDemoPage()),
    GetPage(name: '/chartPage', page: () => const ChartPage()),
    GetPage(name: '/LineChartPage', page: () => const LineChartPage()),
    GetPage(name: '/chart/pieChart', page: () => const PieChartPage()),
    GetPage(name: '/chart/pieChart3D', page: () => const PieChart3DPage()),
    GetPage(name: '/chart/radarChart', page: () => const RadarChartPage()),
    GetPage(name: '/chart/barChart', page: () => const BarChartPage()),
    GetPage(name: '/BleDemo', page: () => const BleDemo()),
    GetPage(
        name: '/chart/horizontal/barChart',
        page: () => const HorizontalBarChartPage()),
    GetPage(
        name: '/chart/combined/chart', page: () => const CombinedChartPage()),
    GetPage(
        name: '/KqTableSplitCell', page: () => const TableSplitCellDemoPage()),
  ];

  ///  跳转表格界面
  static pushTableDemo() {
    Get.toNamed('/KqTable');
  }

  ///  跳转表格界面-拆分单元格
  static pushTableSplitCell() {
    Get.toNamed('/KqTableSplitCell');
  }

  ///  跳转到图表界面
  static pushChartPage() {
    Get.toNamed('/chartPage');
  }

  ///  跳转到蓝牙演示界面
  static pushBleDemoState() {
    Get.toNamed('/BleDemo');
  }

  /// 跳转折线图演示界面
  static goLineChartPage() {
    Get.toNamed('/LineChartPage');
  }

  ///  跳转到饼状图界面
  static pushPieChartPage() {
    Get.toNamed('/chart/pieChart');
  }

  ///  跳转到柱状图界面
  static pushBarChartPage() {
    Get.toNamed('/chart/barChart');
  }

  ///  跳转到3D饼状图界面
  static pushPieChart3DPage() {
    Get.toNamed('/chart/pieChart3D');
  }

  ///  跳转到雷达图
  static pushRadarChartPage() {
    Get.toNamed('/chart/radarChart');
  }

  ///  跳转到柱状图界面
  static pushHorizontalBarChartPage() {
    Get.toNamed('/chart/horizontal/barChart');
  }

  ///  跳转到组合图界面
  static pushCombinedChartPage() {
    Get.toNamed('/chart/combined/chart');
  }
}
